FROM openjdk:8-jdk-alpine
#作者
MAINTAINER pscxtc <pscxtc@163.com>

#指定时区
RUN rm -f /etc/localtime \
&& ln -sv /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone

#构建镜像
ADD target/program-cbc-mobileapi.jar /root/app.jar
RUN sh -c 'touch /root/app.jar'
#HEALTHCHECK --interval=10s --timeout=3s --retries=3 CMD /bin/bash /opt/healthCheck.sh
ENTRYPOINT [ "sh", "-c", "exec java -jar /root/app.jar "]